#pragma once
#include "PointLabCore/Prerequisites.h"
#include "PointLabCore/Log.h"

using std::string;
namespace PointlabTools
{
	class FileLogHandler : public LogHandleInterface
	{
	public:
		enum LogFileType { kLogFile_Log, kLogFile_ErrorReport };
		FileLogHandler(string fileName, LogFileType type = kLogFile_Log);
		~FileLogHandler();
		virtual void handle(const LogItem& log);
		void close();

		int nInfo, nWarning, nError;
	private:

		std::ofstream file;
		LogFileType logFileType;
	};
}
